package com.a100.equipment.service;

import com.a100.equipment.entity.EquArchives;
import com.a100.equipment.entity.po.PageEquCategoryResponsePo;
import com.a100.equipment.entity.vo.CreateEquArchivesVo;
import com.a100.equipment.entity.vo.PageEquCategoryVo;
import com.a100.equipment.entity.vo.UpdateDisableOrEnableArcvhives;
import com.a100.equipment.entity.vo.UpdateEquArchivesVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;

/**
 * <p>
 * 设备档案 服务类
 * </p>
 *
 * @author index
 * @since 2021-12-02
 */
public interface EquArchivesService extends IService<EquArchives> {
    //新增设备
    boolean saveEquCategoryByVo(CreateEquArchivesVo createEquArchivesVo);
    //更新设备
    boolean updateEquCategoryByVo(UpdateEquArchivesVo updateEquArchivesVo);
    //条件分页查询设备
    HashMap<String, Object> listPageByQuery(Integer current, Integer pagesize, PageEquCategoryVo pageEquCategoryVo);
    //查询单个设备
    PageEquCategoryResponsePo chooseEquArchivesById(Long equArchivesId);
    //删除单个设备
    boolean deleteEquArchivesById(Long equArchivesId);
    //调用逻辑层完成启用和禁用设备功能
    boolean updateDisableenabledevice(UpdateDisableOrEnableArcvhives udea);
    //通过Excel批量添加设备
    boolean saveArchivesByExcel(MultipartFile file, EquArchivesService equArchivesService);
    //通过Excel批量导出设备
    String exportArchivesByExcel();
}
